package com.tone.ji_volunteer.service;

import com.tone.ji_volunteer.pojo.Activity;
import com.tone.ji_volunteer.pojo.Joiner;
import com.tone.ji_volunteer.pojo.PageBean;


import java.util.List;
import java.util.Map;

/**
 * @author tone(ang)
 * version 1.0
 */

public interface ActivityService {
    PageBean list(Integer page, Integer pageSize, String query);

    Activity selectActivity(String openid, Integer activityId);

    List<Activity> activitySearch(String query);

    void addImages(String upload, Integer activityID);

    Integer addActivity(Map<String, Object> activity, String openid);

    List<String> getImages(Integer activityId);

    List<Activity> myFoundActivity(String openid);

    void joinActivity(String openid, Integer activityId);

    Joiner isJoin(String openid, Integer activityId);

    List<Activity> myParticipation(String openid);

    void deleteActivity(Integer id);

    void endActivity(Integer activityId);
}
